package com.java.base.exercise.proxy.staticproxy;

import com.java.base.exercise.proxy.staticproxy.impl.HelloServiceImpl;

/**
 * @Author RenPu
 * @Date 2022/1/5 11:43
 * @Version 1.0
 * @Description: 静态代理的测试编写------静态代理就是在编译期就已经完成了
 **/
public class test {

    public static void main(String[] args) {

        //目标对象
        HelloServiceImpl helloService = new HelloServiceImpl();

        //代理对象
        HelloServiceProxy helloServiceProxy = new HelloServiceProxy(helloService);
        helloServiceProxy.say();



    }
}
